import {
    request
} from "./index";

// 购物车模块
const apiModule = 'groupTeam/';


// 删除我的拼团记录
export const deleteMyGroup = (data) => {
    data = Object.assign({}, data, mergeData);
    return request(apiModule + 'delGroupJoin', data);
    // return request(apiModule + 'delete', data);
}

// 拼团活动状态
export const queryGroupStatus = (data) => {
    data = Object.assign({}, data, mergeData);
    return request(apiModule + 'getGroupActivityState', data);
}

// 拼团活动详情
export const queryGroupDetail = (data) => {
    return request(apiModule + 'groupTeamDetail', data);
}

// 我的拼团活动列表
export const queryMyGroupList = (data) => {
    return request(apiModule + 'joinGroupMyList', data);
    // return request(apiModule + 'queryList', data);
}

// 参加拼团
export const joinGroup = (data) => {
    return request(apiModule + 'joinGroupFromApp', data);
    // return request(apiModule + 'save', data);
}

// 倒计时
export const queryGroupMaxCountdown = (data) => {
    return request(apiModule + 'selectMaxEndTime', data);
}